// 动火作业
let dgwkFireWork = {
    title: "标题",
    uegencyDegree: "紧急程度",
    respon: "作业负责人",
    startDtm: "2021-10-09 15:15:15",
    endDtm: "2021-10-09 16:16:16",
    workArea: "作业区域",
    workPosition: "作业位置",
    workCoord: "坐标",
    safe: "安全措施确认",
    level: "级别",
    dcuId: "施工单位编号",
    risk: "风险分析",
    way: "作业方式",
    content: "作业内容",
    otherRisk: "其他风险分析",
    otherSafe: "其他安全措施确认",
    workUser: "作业人员",
    custodian: "作业监护人"
}
// 动土作业
let dgwkBreakGround = {
    title: "标题",
    uegencyDegree: "紧急程度",
    respon: "作业负责人",
    startDtm: "2021-10-09 15:15:15",
    endDtm: "2021-10-09 16:16:16",
    workArea: "作业区域",
    workPosition: "作业位置",
    workCoord: "坐标",
    safe: "安全措施确认",
    dcuId: "施工单位编号",
    content: "作业内容",
    risk: "风险分析",
    workUser: "作业人员",
    custodian: "作业监护人"
}
// 受限空间作业
let dgwkSpaceWork = {
    title: "标题",
    uegencyDegree: "紧急程度",
    respon: "作业负责人",
    startDtm: "2021-10-09 15:15:15",
    endDtm: "2021-10-09 16:16:16",
    workArea: "作业区域",
    workPosition: "作业位置",
    workCoord: "坐标",
    safe: "安全措施确认",
    name: "名称",
    dcuId: "施工单位编号",
    risk: "风险分析",
    content: "作业内容",
    otherRisk: "其他风险分析",
    otherSafe: "其他安全措施确认",
    custodian: "作业监护人"
}
// 吊装作业
let dgwkHoisteOperation = {
    title: "标题",
    uegencyDegree: "紧急程度",
    respon: "作业负责人",
    startDtm: "2021-10-09 15:15:15",
    endDtm: "2021-10-09 16:16:16",
    workArea: "作业区域",
    workPosition: "作业位置",
    workCoord: "坐标",
    safe: "安全措施确认",
    level: "级别",
    dcuId: "施工单位编号",
    risk: "风险分析",
    content: "作业内容",
    otherRisk: "其他风险分析",
    otherSafe: "其他安全措施确认",
    workUser: "作业人员",
    departSuper: "申请部门监护人",
    custodian: "作业监护人"
}
// 临时用电
let dgwkTempElect = {
    title: "标题",
    uegencyDegree: "紧急程度",
    respon: "作业负责人",
    startDtm: "2021-10-09 15:15:15",
    endDtm: "2021-10-09 16:16:16",
    workArea: "作业区域",
    workPosition: "作业位置",
    workCoord: "坐标",
    safe: "安全措施确认",
    tel: "联系方式",
    load: "所需负荷",
    risk: "风险分析",
    useArea: "使用区域",
    otherRisk: "其他风险分析",
    otherSafe: "其他安全措施确认"
}
// 高处作业
let dgwkHeightWork = {
    title: "标题",
    uegencyDegree: "紧急程度",
    respon: "作业负责人",
    startDtm: "2021-10-09 15:15:15",
    endDtm: "2021-10-09 16:16:16",
    workArea: "作业区域",
    workPosition: "作业位置",
    workCoord: "坐标",
    safe: "安全措施确认",
    level: "级别",
    dcuId: "施工单位编号",
    risk: "风险分析",
    content: "作业内容",
    otherRisk: "其他风险分析",
    otherSafe: "其他安全措施确认",
    workUser: "作业人员",
    custodian: "作业监护人",
    consCustodian: "施工单位监护人"
}
// 断路作业 
let dgwkBreakWay = {
    title: "标题",
    uegencyDegree: "紧急程度",
    respon: "作业负责人",
    startDtm: "2021-10-09 15:15:15",
    endDtm: "2021-10-09 16:16:16",
    workArea: "作业区域",
    workPosition: "作业位置",
    workCoord: "坐标",
    reason: "断路原因",
    draft: "断路草图",
    risk: "风险分析",
    content: "作业内容",
    riskAnaly: '风险与措施',
    applyUnit: '断路申请单位补充的安全措施补充',
    workUnit: '断路作业单位补充的安全措施补充',
}
// 涉水作业
let dgwkIntoWater = {
    title: "标题",
    uegencyDegree: "紧急程度",
    respon: "作业负责人",
    startDtm: "2021-10-09 15:15:15",
    endDtm: "2021-10-09 16:16:16",
    workArea: "作业区域",
    workPosition: "作业位置",
    workCoord: "坐标",
    jobSite: "作业部位",
    otherWork: "涉及的其他危险作业",
    workUser: "作业人员",
    custodian: "监护人",
    safe: "安全措施确认",
    otherSafe: "其他安全措施确认"
}

const obj = {
    dgwkFireWork,
    dgwkBreakGround,
    dgwkSpaceWork,
    dgwkHoisteOperation,
    dgwkTempElect,
    dgwkHeightWork,
    dgwkBreakWay,
    dgwkIntoWater
}

for (let key in obj) {
    for (let key1 in obj[key]) {

        if (typeof obj[key][key1] == 'string') {
            obj[key][key1] = ''
        }
        if (obj[key][key1] instanceof Array) {
            obj[key][key1] = []
        }
    }

}
// console.log(obj);

export function getHomeWorkInfo(key) {
    return JSON.parse(JSON.stringify(obj[key]))
}
// 将数据引入 赋值给页面的info 并向后面的页面进行传递
// 根据每一项数据的状态判断是否展示某些数据 或者 进行某些请求